package com.dal.gm_api.pojo;

import java.io.Serializable;

/**
 * @author : DengYing
 * @CreateDate : 2018年1月9日 下午1:49:43
 * @Description ：服务器信息
 */
public class GMServerInfoDTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3906385478393882412L;
	
	/** 服务器ID */
	private String id;
	/** 服务器状态 */
	private int status;
	/** 在线人数 */
	private int onlineCount;
	/** 注册人数 */
	private int playerCount;
	
	// -----------------------------------网络信息------------------------------------
	/** 内网IP */
	private String localHost;
	/** 外网IP */
	private String remoteHost;
	/** socket端口 */
	private int socketPort;
	/** Http端口 */
	private int httpPort;
	//----------------------------------- 内存信息------------------------------------
	
	/** 物理内存，总的可使用的，单位：M */
	private int osPhysicalMemory;
	/** 物理内存，剩余，单位：M */
	private int osPhysicalFreeMemory;
	/** JVM内存，内存总量，单位：M */
	private int jvmTotalMemory;
	/** JVM内存，空闲内存量，单位：M */
	private int jvmFreeMemory;
	/** JVM内存，最大内存量，单位：M */
	private int jvmMaxMemory;
	
	//------------------------------------ CPU 信息 -----------------------------------
	/** CPU 数量 */
	private int osCpuNumber;
	/** CPU 使用率 */
	private double oscpuRatio;
	
	/** 信息时间 */
	private long infoTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getOnlineCount() {
		return onlineCount;
	}

	public void setOnlineCount(int onlineCount) {
		this.onlineCount = onlineCount;
	}

	public int getPlayerCount() {
		return playerCount;
	}

	public void setPlayerCount(int playerCount) {
		this.playerCount = playerCount;
	}

	public String getLocalHost() {
		return localHost;
	}

	public void setLocalHost(String localHost) {
		this.localHost = localHost;
	}

	public String getRemoteHost() {
		return remoteHost;
	}

	public void setRemoteHost(String remoteHost) {
		this.remoteHost = remoteHost;
	}

	public int getSocketPort() {
		return socketPort;
	}

	public void setSocketPort(int socketPort) {
		this.socketPort = socketPort;
	}

	public int getHttpPort() {
		return httpPort;
	}

	public void setHttpPort(int httpPort) {
		this.httpPort = httpPort;
	}

	public int getOsPhysicalMemory() {
		return osPhysicalMemory;
	}

	public void setOsPhysicalMemory(int osPhysicalMemory) {
		this.osPhysicalMemory = osPhysicalMemory;
	}

	public int getOsPhysicalFreeMemory() {
		return osPhysicalFreeMemory;
	}

	public void setOsPhysicalFreeMemory(int osPhysicalFreeMemory) {
		this.osPhysicalFreeMemory = osPhysicalFreeMemory;
	}

	public int getJvmTotalMemory() {
		return jvmTotalMemory;
	}

	public void setJvmTotalMemory(int jvmTotalMemory) {
		this.jvmTotalMemory = jvmTotalMemory;
	}

	public int getJvmFreeMemory() {
		return jvmFreeMemory;
	}

	public void setJvmFreeMemory(int jvmFreeMemory) {
		this.jvmFreeMemory = jvmFreeMemory;
	}

	public int getJvmMaxMemory() {
		return jvmMaxMemory;
	}

	public void setJvmMaxMemory(int jvmMaxMemory) {
		this.jvmMaxMemory = jvmMaxMemory;
	}

	public int getOsCpuNumber() {
		return osCpuNumber;
	}

	public void setOsCpuNumber(int osCpuNumber) {
		this.osCpuNumber = osCpuNumber;
	}

	public double getOscpuRatio() {
		return oscpuRatio;
	}

	public void setOscpuRatio(double oscpuRatio) {
		this.oscpuRatio = oscpuRatio;
	}

	public long getInfoTime() {
		return infoTime;
	}

	public void setInfoTime(long infoTime) {
		this.infoTime = infoTime;
	}
	
	

}
